import com.sun.security.jgss.GSSUtil;

import java.util.Arrays;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: 86138
 * Date: 2024-09-05
 * Time: 14:42
 */
public class Nine_5 {
    public static void main1(String[] args) {
        int x = 10;
        int y = 10;
        if (x == 10)
            if (y == 10)
                System.out.println("aaa");
            else
                System.out.println("bbb");

            int[] arr1 = new int [10];
            int[] arr2 = {1,4,3,5,7};
        System.out.println(Arrays.toString(arr1));
        System.out.println(Arrays.toString(arr2));

        char arr3[] = new char[2];
        System.out.println(Arrays.toString(arr3));
        System.out.println(arr2.length);

        int[][] array7 = {{1,2},{3,4}};
        for (int[]  v : array7) {
            for (int b : v) {
                System.out.print(x + " ");
            }
            System.out.println();
        }
        System.out.println(Arrays.deepToString(array7));
    }

    public static void main2(String[] args) {
        int[] arr = {1,5,7,4,6,9};
        Arrays.sort(arr);
        System.out.println(Arrays.binarySearch(arr,1));
        int[] arr2 = Arrays.copyOf(arr,4);
        System.out.println(Arrays.toString(arr));
        System.out.println(Arrays.toString(arr2));
    }

    public static void main(String[] args) {
        int[] arr1 = {1,2};
        int[] arr2 = {1,2};
        boolean a = Arrays.equals(arr1,arr2);
        System.out.println(a);
    }
}
